package com.heima;

public class Teacher {
    private String name;
    private String number;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Teacher(String name, String number) {
        this.name = name;
        this.number = number;
    }

    public Teacher() {
    }

    public void teach(){
        System.out.println("工号为"+number+"的"+name+"老师正在讲课");
    }
}
